<script>
    export default {
        name: "BaseLink",
        abstract: true,
        props: {
            to: Object
        },
        render() {
            return this.$slots.default[0];
        },
        mounted() {
            this.$el.addEventListener('click', () => {
                this.$router.push(this.to);
            });
        }
    };
</script>

<style scoped>

</style>